package com.teyao.teyao_back.controller;

import com.teyao.teyao_back.entity.ResponseMessage;
import com.teyao.teyao_back.service.LoadingDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/loadingDetails")
public class LoadingDetailsWrapperController {

    @Autowired
    private LoadingDetailsService loadingDeatilsService;

    @GetMapping("/selectByOrderId")
    public ResponseMessage selectByOrderId(String orderId) {
        return loadingDeatilsService.selectByOrderId(orderId);
    }


}
